package com.my.test.design.chainofresponsibility;

public class Boss extends  Leader{

    public Boss(String name) {
        super(name);
    }

    @Override
    public void handRequest(Request request) {

        if (request.getDays()>=5 && request.getDays()<=10){
            System.out.println(request.getName());
            System.out.println(request.getReason());
            System.out.println(request.getDays());

            System.out.println("I agree:"+this.getName());
        } else {
            System.out.println("I do not agree the time is long:"+this.getName());
        }
    }


}
